package com.hotacorp.opencloud.flowservice;

import org.camunda.bpm.spring.boot.starter.annotation.EnableProcessApplication;
import org.camunda.bpm.spring.boot.starter.event.PostDeployEvent;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.event.EventListener;

import com.hotacorp.opencloud.common.log.annotation.EnableLogging;
import com.hotacorp.opencloud.common.resourcecommon.annotation.EnableOpenCloudResourceServer;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 流程服务入口
 * @author lwg
 *
 */
@SpringBootApplication
@EnableProcessApplication
@EnableDiscoveryClient
@EnableOpenCloudResourceServer
@EnableSwagger2
@EnableLogging
public class FlowServiceApplication {

	public static void main(String[] args) {
		SpringApplication.run(FlowServiceApplication.class, args);
	}

	@EventListener
	private void processPostDeploy(PostDeployEvent event) {
		System.out.println(event);
	}

}
